package vcp.enums;

import vcp.enums.utility.EnumReverser;
import vcp.enums.utility.EnumReverser.IEnumReverser;
/**
 * 
 * @author VCP team
 *<p> user type enum class </p>
 */
public enum UserType implements IEnumReverser
{
	CUSTOMER ( "Customer" ),
	WORKER ( "Worker" );

	private final String userType;
	/**
	 * sets user type
	 * @param type
	 */
	private UserType ( String type )
	{
		this.userType = type;
	}

	@Override
	public String toString ()
	{
		return this.userType;
	}
	/** converts user type to relevant enum **/
	public static UserType convert ( String key )
	{
		return EnumReverser.convert(UserType.class, key);
	}
}
